<template>
  <div>
    <el-form  ref="elForm" :model="formData" :rules="rules" size="medium" label-width="100px">
      <el-form-item size="mini" label="百度一下" prop="field101">
        <el-input v-model="formData.field101" placeholder="请输入搜索内容" clearable :style="{width: 'auto'}"></el-input>
         <el-button type="primary" @click="submitForm">搜索</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
import { listCyw, getCyw, delCyw, addCyw, updateCyw,search } from "@/api/cyw/cyw";
export default {
  components: {},
  props: [],
  data() {
    return {
      formData: {
        field101: undefined,
      },
      rules: {
        field101: [{
          required: true,
          message: '请输入搜索内容',
          trigger: 'blur'
        }],
      },
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    submitForm() {
      this.$refs['elForm'].validate(valid => {
        if (!valid) return
        // TODO 提交表单

      })
    },
    resetForm() {
      this.$refs['elForm'].resetFields()
    },
  }
}

</script>
<style>
body {
  background-image: url(https://img-blog.csdnimg.cn/a7d3536782d34024914b76d3eafbe637.jpg);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: 0px -50px;
}
</style>
